﻿using System.Web.Mvc;
using System.Web.Routing;

namespace CIS.Web
{
	public class RouteConfig
	{
		public static void RegisterRoutes(RouteCollection routes)
		{
			routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
			routes.MapMvcAttributeRoutes();

			//routes.Add(
			//	"DomainRoute", new DomainRoute(
			//	"{MeetingMainUrl}.htcis.net",
			//	"{controller}/{action}/{name}",
			//	new { MeetingMainUrl = "", controller = "MeetingMain", action = "Index", name = "" }
			//	)
			//);

			routes.MapRoute(
				name: "Default",
				url: "{controller}/{action}/{id}",
				defaults: new { controller = "Home", action = "MainIndex", id = UrlParameter.Optional }
			);
		}
	}
}